package com.ybkj.daijia.server.service;

import com.alibaba.fastjson.JSONObject;
import com.ybkj.daijia.page.Page;
import com.ybkj.daijia.server.model.Driver;
import com.ybkj.daijia.server.model.DriverEnchashment;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author Shine
 */
public interface DriverEnchashmentService {

    /**
     * 驾驶员提现页面  四个统计数据
     * @return
     */
    JSONObject statistics();

    /**
     * 分页查询司机申请信息
     *
     * @return
     */
    public Page<DriverEnchashment> queryByEmploy(Long employId, String param, Integer page, Integer limit);

    /**
     * 保存司机申请信息
     *
     * @param driverApply
     * @return
     */
    public DriverEnchashment insertRecord(DriverEnchashment driverEnchashment);

    /**
     * 根据主键查询司机申请信息
     *
     * @param id
     * @return
     */
    public DriverEnchashment findOne(Long id);

    /**
     * 删除司机申请信息
     *
     * @param driverApply
     */
    public void delete(DriverEnchashment driverEnchashment);


    /**
     * 根据主键更新司机申请信息
     *
     * @param driverApply
     * @return
     */
    public int updateByPrimaryKey(DriverEnchashment driverEnchashment);

    public void applyEnchashment(Driver driver, BigDecimal money, String bank, String cardNumber, String masterName, String type);

    public void audit(DriverEnchashment driverEnchashment, Driver driver, String result);

    /**
     * 查询导出所需的数据
     *
     * @param employId 用户id
     * @param param    查询条件
     * @return 提现记录集合
     */
    public List<DriverEnchashment> listByEmploy(Long employId, String param);
}
